<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Support\Facades\Gate;

class Controller extends \App\Http\Controllers\Controller
{
    public function authorizeAny($abilities)
    {
        if (!Gate::any($abilities)) {
            throw new AuthorizationException();
        }
    }
}
